package com.way.filemanager.ui.dialogs;

import com.way.filemanager.R;

import android.app.Dialog;
import android.content.Context;
import android.view.Window;

public class RefreshDialog {
    private Dialog mDialog;
    Context mContext;
    public RefreshDialog(Context ctx) {
        mContext = ctx;
        mDialog = new Dialog(mContext);
        mDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
        mDialog.getWindow().setBackgroundDrawableResource(R.drawable.loading_overall_bg);
        mDialog.setContentView(R.layout.online_refreshing);
        mDialog.setCancelable(false);
    }
    public void show(){
        mDialog.show();
    }
    public void dismiss(){
        mDialog.dismiss();
    }
}
